package com.itany.shop.log4j;

import org.apache.log4j.Logger;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/4/20 17:00
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class Test {

    public static void main(String[] args) {
        Logger logger = Logger.getLogger(Test.class);
        // 当且仅当,方法的等级大于等于日志的等级时,日志才会被记录
        logger.debug("log4j调试消息日志");
        logger.info("log4j普通消息日志");
        logger.error("log4j错误消息日志");

    }

}
